{{--前台详情页--}}
@extends('default.layouts.part_time_managePublic')
@section('title', '查看兼职简历')
{{--兼职详情页css--}}
@section('headcss')
    <meta name="keywords" content="{{Site::get('homekeywords')}}">
    <meta name="description" content="{{Site::get('homedescription')}}">
    @parent
    <link rel="stylesheet" type="text/css" href="{{asset('/default/css/company/welcome.css')}}">
    <link rel="stylesheet" href="{{asset('/default/css/part_time/resume.css')}}">

    <link rel="stylesheet" href="{{asset('/vendor/jedate/skin/jedate.css')}}">

@endsection

{{--主体内容--}}
@section('content')
    {{--职位信息及侧边下载框--}}
    <div class="main">
        <div class="wrapper">
            <div class="asideNav">
                <ul>
                    @include('default.layouts.part_time_public_left')
                </ul>
            </div>
            {{--详细内容--}}
            <div class="details">
                {{--基本信息--}}
                <div class="box baseInfo">
                    {{--左侧头像--}}
                    <div class="avatar">
                        <img src="{{$info->avatar}}" alt="头像" width="120" height="120">
                    </div>
                    <div class="info">
                        <div class="name">
                            <strong>{{$info->name}}</strong><span>（{{$info->sex_name}}，{{birthday($info->birthday)}}
                                岁）</span>
                        </div>
                        <div class="cont1">
                            <span>{{$info->education_name}}</span><span class="vline"></span>
                            <span>{{$info->school}}</span><span class="vline"></span>
                            <span>{{$info->student_name}}</span><span class="vline"></span>
                            <span>{{$info->height}}cm</span>
                        </div>
                        <div class="cont2">
                            <span>居住地：{{$info->address_city}}</span>&nbsp;&nbsp;
                            <span>期望地点：{{$info->place_city}}</span>&nbsp;&nbsp;
                            <span>@if($info->y_m_time_start != '0000-00-00')在校时间：{{$info->y_m_time_start}}&nbsp;~&nbsp;{{$info->y_m_time_end}}@endif</span>
                        </div>
                        <div class="contacts">
                            <span class="tel">{{$info->mobile}}</span>
                            @if(!empty($info->qq))<i class="vLine"></i><span class="qq">{{$info->qq}}</span>@endif
                            @if(!empty($info->wechat))<i class="vLine"></i><span class="wechat">{{$info->wechat}}</span>@endif
                        </div>
                    </div>
                </div>
                {{--求职意向--}}
                <div class="box intention">
                    <div class="title"><strong>求职意向</strong></div>
                    <p>{{$info->intention_name}}</p>
                </div>
                {{--空闲时间--}}
                <div class="box freeTime">
                    <div class="title"><strong>空闲时间</strong></div>
                    <div class="time">
                        <table>
                            <tr class="t_title">
                                <td></td>
                                <td>星期一</td>
                                <td>星期二</td>
                                <td>星期三</td>
                                <td>星期四</td>
                                <td>星期五</td>
                                <td>星期六</td>
                                <td>星期七</td>
                            <tr>
                                {{--isWork:表示工作日--}}
                                <td>上午</td>
                                <td class="@if($info->free_time_list->num1==1){!! 'isWork' !!}@endif"></td>
                                <td class="@if($info->free_time_list->num4==1){!! 'isWork' !!}@endif"></td>
                                <td class="@if($info->free_time_list->num7==1){!! 'isWork' !!}@endif"></td>
                                <td class="@if($info->free_time_list->num10==1){!! 'isWork' !!}@endif"></td>
                                <td class="@if($info->free_time_list->num13==1){!! 'isWork' !!}@endif"></td>
                                <td class="@if($info->free_time_list->num16==1){!! 'isWork' !!}@endif"></td>
                                <td class="@if($info->free_time_list->num19==1){!! 'isWork' !!}@endif"></td>
                            </tr>
                            <tr>
                                <td>下午</td>
                                <td class="@if($info->free_time_list->num2==1){!! 'isWork' !!}@endif"></td>
                                <td class="@if($info->free_time_list->num5==1){!! 'isWork' !!}@endif"></td>
                                <td class="@if($info->free_time_list->num8==1){!! 'isWork' !!}@endif"></td>
                                <td class="@if($info->free_time_list->num11==1){!! 'isWork' !!}@endif"></td>
                                <td class="@if($info->free_time_list->num14==1){!! 'isWork' !!}@endif"></td>
                                <td class="@if($info->free_time_list->num17==1){!! 'isWork' !!}@endif"></td>
                                <td class="@if($info->free_time_list->num20==1){!! 'isWork' !!}@endif"></td>
                            <tr>
                                <td>晚上</td>
                                <td class="@if($info->free_time_list->num3==1){!! 'isWork' !!}@endif"></td>
                                <td class="@if($info->free_time_list->num6==1){!! 'isWork' !!}@endif"></td>
                                <td class="@if($info->free_time_list->num9==1){!! 'isWork' !!}@endif"></td>
                                <td class="@if($info->free_time_list->num12==1){!! 'isWork' !!}@endif"></td>
                                <td class="@if($info->free_time_list->num15==1){!! 'isWork' !!}@endif"></td>
                                <td class="@if($info->free_time_list->num18==1){!! 'isWork' !!}@endif"></td>
                                <td class="@if($info->free_time_list->num21==1){!! 'isWork' !!}@endif"></td>
                            </tr>
                        </table>
                    </div>
                </div>
                {{--自我评价--}}
                <div class="box assessment">
                    <div class="title"><strong>自我介绍</strong></div>
                    <p>{{$info->content}}</p>
                </div>
            </div>
            {{--详细内容结束--}}

        </div>
    </div>
    {{--职位信息及侧边下载框结束--}}
@endsection
{{--兼职详情页js--}}
@section('footerjs')
    @parent
    <script>
        $(function(){
            //侧边导航栏点击事件
            $('.main .wrapper .asideNav ul').on('click.asideNav', 'li', function () {
                var url = $(this).attr('data-href');
                window.location.href = url;
            });
        });
    </script>
@endsection